home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 284_01 / compile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-11  |  2.9 KB  |  71 lines

  1. /* compile.h - define some compiler and/or CPU dependent conditions    */
  2.  
  3. /* Edit the following definitons to match your environment.  If your    */
  4. /* machine is in a list, you can simply select one.  Otherwise, you    */
  5. /* must add your machine into the list and supply proper definitions.    */
  6. /* Note that some entries in the list are NOT TESTED, sorry.        */
  7.  
  8. #define MSC_86        0    /* for Microsoft C ver 3 or later for 8086's    */
  9. #define TURBO_C_86  1    /* for Borland's Turbo C 1.5 for 8086's        */
  10. #define LATTICE_86  0    /* for Lattice C ver 2 for 8086's        */
  11. #define DRI_68K        0    /* for Degital Research C for 68000's        */
  12. #define SUN3        0    /* for Sun Microsystems' SUN 3 work station    */
  13. #define u3B2        0    /* for AT&T's 3B2 with UNIX system V        */
  14.  
  15. /* specific definitions                            */
  16.  
  17. #if MSC_86 | TURBO_C_86
  18. /* basic data types */
  19. #define BYTE        unsigned char    /* unsigned  8 bit type        */
  20. #define WORD        unsigned short    /* unsigned 16 bit type        */
  21. #define BOOL        unsigned short    /* fast unsigned type        */
  22. #define EXTRA        unsigned long    /* any type w/ 18 bits or more    */
  23. /* byte order */
  24. #define LITTLE_INDIAN    1        /* Least Significant BYTE first */
  25. #define BIG_INDIAN    0        /* Most Significant BYTE first    */
  26. #endif
  27.  
  28. #if LATTICE_86
  29. /* basic data types */
  30. #define BYTE        char        /* unsigned  8 bit type        */
  31. #define WORD        unsigned short    /* unsigned 16 bit type        */
  32. #define BOOL        char        /* fast unsigned type        */
  33. #define EXTRA        unsigned long    /* any type w/ 18 bits or more    */
  34. /* byte order */
  35. #define LITTLE_INDIAN    1        /* Least Significant BYTE first */
  36. #define BIG_INDIAN    0        /* Most Significant BYTE first    */
  37. #endif
  38.  
  39. #if u3B2
  40. /* basic data types */
  41. #define BYTE        unsigned char    /* unsigned  8 bit type        */
  42. #define WORD        unsigned short    /* unsigned 16 bit type        */
  43. #define BOOL        unsigned long    /* fast unsigned type        */
  44. #define EXTRA        unsigned long    /* any type w/ 18 bits or more    */
  45. /* byte order */
  46. #define LITTLE_INDIAN    1        /* Least Significant BYTE first */
  47. #define BIG_INDIAN    0        /* Most Significant BYTE first    */
  48. #endif
  49.  
  50. #if DRI_68K
  51. /* basic data types */
  52. #define BYTE        unsigned char    /* unsigned  8 bit type        */
  53. #define WORD        unsigned short    /* unsigned 16 bit type        */
  54. #define BOOL        unsigned short    /* fast unsigned type        */
  55. #define EXTRA        unsigned long    /* any type w/ 18 bits or more    */
  56. /* byte order */
  57. #define LITTLE_INDIAN    0        /* Least Significant BYTE first */
  58. #define BIG_INDIAN    1        /* Most Significant BYTE first    */
  59. #endif
  60.  
  61. #if SUN3
  62. /* basic data types */
  63. #define BYTE        unsigned char    /* unsigned  8 bit type        */
  64. #define WORD        unsigned short    /* unsigned 16 bit type        */
  65. #define BOOL        unsigned long    /* fast unsigned type        */
  66. #define EXTRA        unsigned long    /* any type w/ 18 bits or more    */
  67. /* byte order */
  68. #define LITTLE_INDIAN    0        /* Least Significant BYTE first */
  69. #define BIG_INDIAN    1        /* Most Significant BYTE first    */
  70. #endif
  71.